/*
 * @Author: luoqi
 * @Date: 2022-03-27 15:06:07
 * @LastEditors: luoqi
 * @LastEditTime: 2022-04-04 14:01:26
 * @Description: 
 */
import React, { useState } from 'react';
import { Select } from 'antd';

import { Tabs } from 'antd';
import Allclassify from './AllClassify';
import Parentclassify from './ParentClassify';

const { TabPane } = Tabs;


const Classify = () => {
  
  function callback(key) {
    console.log(key);
  }
  
  return (
    <div>
      <Tabs defaultActiveKey="1" onChange={callback}>
        <TabPane tab="全部分类" key="1">
          <Allclassify/>
        </TabPane>
        <TabPane tab="一级分类" key="2">
          <Parentclassify/>
        </TabPane>
      </Tabs>

    </div>
  );
}

export default Classify;
